<template>
  <div>
    <el-tabs type="border-card">
      <el-tab-pane>
        <span slot="label"><i class="el-icon-date"></i> 车辆查询</span>
        11
        <el-button @click="add()" type="primary" style="margin-left: 16px">
          点我打开
        </el-button>
        <EditInfoDrawer ref="editInfoDrawer"></EditInfoDrawer>

        <Search></Search>
      </el-tab-pane>
      <el-tab-pane label="各站点实时车辆"
        >11<RealTimeList></RealTimeList
      ></el-tab-pane>
      <el-tab-pane label="在厂车辆"
        >11<InTheFactory></InTheFactory
      ></el-tab-pane>
    </el-tabs>
    
  </div>
</template>
<script>
// import { getList, delCrm, editState } from '@/api/market/crm.js'
import InTheFactory from './inTheFactory'
import RealTimeList from './realTimeList'
import EditInfoDrawer from './editInfoForm'
import Search from './search'
//   import PopoverBut from '@/components/button/popoverBut'
export default {
  components: {
    InTheFactory, // 在厂车辆
    RealTimeList, // 实时车辆
    Search, // 搜索车辆
    EditInfoDrawer
  },
  data () {
    return {}
  },
  methods: {
      add () {
          this.$refs.editInfoDrawer.init('add')
      }
  }
}
</script>
